/*********************************************************************
* File: star.h
* Create Star
* Author: 10520418 Bui Huu Hiep
**********************************************************************/
#pragma once
#ifndef _STAR_H
#define _STAR_H
#include "GameObject.h"

// Set lai
#define STAR_MAX_VX 50
#define STAR_MAX_VY 1000

/********************************************
* Mushroom
* Inheritance form class Obj
* Create Star
********************************************/
class Star : public GameObject
{
private:
	float _temp_y;
public:
	Star(float posX, float posY, float width, float height, Resources* res, int number, int depth);
	~Star(void);

	void Update(float time, QNode* &Tree);
	void Render(LPD3DXSPRITE spriteHandler, Viewport* viewport);
	void ChangeState(char state);
	void Move(float time, vector<GameObject*> listObj);
};
#endif

